package com.qixiucoding.strategy.impl;

import com.alibaba.fastjson.JSONArray;
import com.qixiucoding.strategy.HandlingDataAbstract;
import com.qixiucoding.strategy.StrategyName;
import lombok.extern.slf4j.Slf4j;

/**
 * @Description TODO
 * @Author longhj
 * @Date 2022/05/28 星期六 14:19
 */
@Slf4j
@StrategyName("B名称")
public class BStrategy extends HandlingDataAbstract<JSONArray> {
    @Override
    protected JSONArray doDeal(JSONArray jsonArray) {
        log.info("A策略执行了自己的-doDeal");
        return jsonArray;
    }
    @Override
    public JSONArray dealBefore(JSONArray t) {
        log.info("A策略重写了HandlingDataAbstract-dealBefore");
        return t;
    }

}
